package com.chance.cc.crawler.prod.command.schedule.commerce.kaola;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.kaola.realtime.KaolaCommentCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.kaola.realtime.KaolaCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.kaola.realtime.KaolaKeyCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @ClassName dangdang
 * @Description TODO
 * @Author songding
 * @Date 2021/10/19 16:36
 * @Version 1.0
 **/
public class KaolaCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        //每天采集最新评论
        commonCrawlerScheduleJob(KaolaCommentCrawlerScheduleJob.amazonCommentCrawlerScheduler());
        //每天采集文章
//        delCrawlerScheduleJob(KaolaCrawlerScheduleJob.amazonScheduler());
        //每月采集一次全品链接
//        keyCrawlerScheduleJob(KaolaKeyCrawlerScheduleJob.amazonScheduler());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }
    public static void keyCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }
}
